﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:luna="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Luna">

    <Style x:Key="WoWTextBoxStyle" TargetType="{x:Type TextBox}">
        <Setter Property="Background" Value="#00000000"/>
        <Setter Property="BorderBrush" Value="#00000000"/>
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
        <Setter Property="BorderThickness" Value="1,1,1,1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="2,2,2,2"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="AllowDrop" Value="True"/>
        <Setter Property="TextAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <Grid x:Name="grid" Height="34" VerticalAlignment="Top">
                        <!--
                            <Grid.Effect>
                                <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                            </Grid.Effect>
                            -->
                        <Image HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Textbox_Center.png" Stretch="Fill" Margin="6,0,10,0" SnapsToDevicePixels="True"/>
                        <Image HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="6" Source="Images\Textbox_Left.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                        <Image HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="10" Source="Images\Textbox_Right.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                        <Rectangle x:Name="HighLight" Fill="{x:Null}" Stroke="#FFFFCC00" StrokeThickness="1" Margin="3,3,3,3" RadiusX="3" RadiusY="3" Opacity="0"/>
                        <ScrollViewer x:Name="PART_ContentHost" Margin="0,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="Stretch" VerticalAlignment="Center"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter Property="Opacity" TargetName="HighLight" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="True">
                            <Setter Property="Opacity" TargetName="HighLight" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Opacity" TargetName="grid" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WoWPasswordBoxStyle" TargetType="{x:Type PasswordBox}">
        <Setter Property="Background" Value="#00000000"/>
        <Setter Property="BorderBrush" Value="#00000000"/>
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="PasswordChar" Value="●"/>
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="Padding" Value="2"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type PasswordBox}">
                    <Grid x:Name="MyGrid" Height="34" VerticalAlignment="Top">
                        <!--
                            <Grid.Effect>
                                <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                            </Grid.Effect>
                            -->
                        <Image HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="34" Source="Images\Textbox_Center.png" Stretch="Fill" Margin="6,0,10,0" SnapsToDevicePixels="True"/>
                        <Image HorizontalAlignment="Left" VerticalAlignment="Top" Width="6" Height="34" Source="Images\Textbox_Left.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                        <Image HorizontalAlignment="Right" VerticalAlignment="Top" Width="10" Height="34" Source="Images\Textbox_Right.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                        <Rectangle x:Name="HighLight" Fill="{x:Null}" Stroke="#FFFFCC00" StrokeThickness="1" Margin="3,3,3,3" RadiusX="3" RadiusY="3" Opacity="0"/>
                        <ScrollViewer x:Name="PART_ContentHost" Margin="0,0,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                            <Setter Property="Opacity" TargetName="HighLight" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="True">
                            <Setter Property="Opacity" TargetName="HighLight" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Opacity" TargetName="MyGrid" Value="0.5"/>
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WoWLabelStyle" TargetType="{x:Type Label}">
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="Padding" Value="5"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="FontFamily" Value="Georgia"/>
        <Setter Property="FontSize" Value="20"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Label}">
                    <Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True">
                            <ContentPresenter.Effect>
                                <DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#FF834924"/>
                            </ContentPresenter.Effect>
                        </ContentPresenter>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WoWButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Foreground" Value="#FFFFE504"/>
        <Setter Property="FontFamily" Value="Georgia"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid x:Name="grid" Width="108" Height="34">
                        <Grid x:Name="MyGrid" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Grid.Effect>
                                <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                            </Grid.Effect>
                            <Image x:Name="Button_Generic_Center_Up" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Button_Generic_Center_Up.png" Stretch="Fill" Margin="6,0,6,0" Width="Auto" SnapsToDevicePixels="True"/>
                            <Image x:Name="Button_Generic_Left_Up" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="6" Source="Images\Button_Generic_Left_Up.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                            <Image x:Name="Button_Generic_Right_Up" HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="6" Source="Images\Button_Generic_Right_Up.png" Stretch="Fill" SnapsToDevicePixels="True"/>

                            <Image x:Name="Button_Generic_Center_Over" Opacity="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Button_Generic_Center_Over.png" Stretch="Fill" Margin="6,0,6,0" Width="Auto" SnapsToDevicePixels="True"/>
                            <Image x:Name="Button_Generic_Left_Over" Opacity="0" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="6" Source="Images\Button_Generic_Left_Over.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                            <Image x:Name="Button_Generic_Right_Over" Opacity="0" HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="6" Source="Images\Button_Generic_Right_Over.png" Stretch="Fill" SnapsToDevicePixels="True"/>

                            <Image x:Name="Button_Generic_Center_Down" Opacity="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Button_Generic_Center_Down.png" Stretch="Fill" Margin="6,0,6,0" Width="Auto" SnapsToDevicePixels="True"/>
                            <Image x:Name="Button_Generic_Left_Down" Opacity="0" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="6" Source="Images\Button_Generic_Left_Down.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                            <Image x:Name="Button_Generic_Right_Down" Opacity="0" HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="6" Source="Images\Button_Generic_Right_Down.png" Stretch="Fill" SnapsToDevicePixels="True"/>
                            <ContentPresenter x:Name="contentPresenter" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Margin="20,-2,20,0" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <ContentPresenter.Effect>
                                    <DropShadowEffect ShadowDepth="0"/>
                                </ContentPresenter.Effect>
                            </ContentPresenter>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="Button_Generic_Center_Down" Value="1"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Left_Down" Value="1"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Right_Down" Value="1"/>
                            <Setter Property="Margin" TargetName="contentPresenter" Value="20,0,20,0"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="False">
                            <Setter Property="Opacity" TargetName="Button_Generic_Center_Down" Value="0"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Left_Down" Value="0"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Right_Down" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Opacity" TargetName="Button_Generic_Center_Over" Value="1"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Left_Over" Value="1"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Right_Over" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="False">
                            <Setter Property="Opacity" TargetName="Button_Generic_Center_Over" Value="0"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Left_Over" Value="0"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Right_Over" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                            <Setter Property="Opacity" TargetName="Button_Generic_Center_Over" Value="1"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Left_Over" Value="1"/>
                            <Setter Property="Opacity" TargetName="Button_Generic_Right_Over" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Opacity" TargetName="MyGrid" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WoWComboBoxStyle" TargetType="{x:Type ComboBox}">
        <Setter Property="Padding" Value="1"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="FontFamily" Value="Arial"/>
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="Foreground" Value="#FFFFFFFF"/>
        <Setter Property="Background" Value="#FF34483F"/>
        <Setter Property="BorderBrush" Value="#FF000000"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ComboBox}">
                    <Grid SnapsToDevicePixels="true" x:Name="MyGrid">
                        <Grid Grid.IsSharedSizeScope="true" Height="34">
                            <Grid.Effect>
                                <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                            </Grid.Effect>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="20" SharedSizeGroup="ComboBoxButton"/>
                            </Grid.ColumnDefinitions>
                            <ToggleButton Style="{DynamicResource WoWToggleButtonStyle}" Grid.ColumnSpan="2" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}"/>
                            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Grid.Column="0" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="13,0,13,0" IsHitTestVisible="False"/>
                        </Grid>
                        <Popup x:Name="PART_Popup" AllowsTransparency="true" IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}" Focusable="false">
                            <luna:SystemDropShadowChrome x:Name="Shdw" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" Color="Transparent">
                                <luna:SystemDropShadowChrome.Effect>
                                    <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                                </luna:SystemDropShadowChrome.Effect>
                                <Border x:Name="DropDownBorder" BorderBrush="#FFAAAAAA" BorderThickness="2,2,2,2" Background="#FF34483F" CornerRadius="5,5,5,5">
                                    <ScrollViewer x:Name="scrollViewer" Foreground="#FFFFFFFF" FontFamily="Arial" FontSize="16">
                                        <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" KeyboardNavigation.DirectionalNavigation="Contained" Margin="6,6,6,6"/>
                                    </ScrollViewer>
                                </Border>
                            </luna:SystemDropShadowChrome>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="HasItems" Value="false">
                            <Setter Property="MinHeight" TargetName="DropDownBorder" Value="95"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Opacity" TargetName="MyGrid" Value="0.5"/>
                        </Trigger>
                        <Trigger Property="IsGrouping" Value="true">
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WoWCheckBoxStyle" TargetType="{x:Type CheckBox}">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type CheckBox}">
                    <Grid Width="20" Height="20" x:Name="MyGrid">
                        <Grid.Effect>
                            <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                        </Grid.Effect>
                        <Image HorizontalAlignment="Left" VerticalAlignment="Top" Source="Images\Checkbox_Unchecked.png" Stretch="Fill"/>
                        <Image x:Name="ImageDown" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Checkbox_Down.png" Stretch="Fill" Opacity="0"/>
                        <Image x:Name="ImageChecked" HorizontalAlignment="Left" VerticalAlignment="Top" Source="Images\Checkbox_Checked.png" Stretch="Fill" Opacity="0"/>
                        <Image x:Name="ImageOver" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Checkbox_Checked_Over.png" Stretch="Fill" Opacity="0"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsPressed" Value="True"/>
                                <Condition Property="IsChecked" Value="False"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Opacity" TargetName="ImageDown" Value="1"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsChecked" Value="True"/>
                                <Condition Property="IsMouseOver" Value="True"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Opacity" TargetName="ImageDown" Value="0"/>
                            <Setter Property="Opacity" TargetName="ImageOver" Value="1"/>
                        </MultiTrigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter TargetName="MyGrid" Property="Opacity" Value="0.5"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Opacity" TargetName="ImageChecked" Value="1"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WowCloseButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid Width="24" Height="24" x:Name="MyGrid">
                        <Grid.Effect>
                            <DropShadowEffect BlurRadius="6" ShadowDepth="2" Direction="225"/>
                        </Grid.Effect>
                        <Image x:Name="ImageUp" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Button_Close_Up.png" Stretch="Fill"/>
                        <Image x:Name="ImageOver" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Button_Close_Over.png" Stretch="Fill" Opacity="0"/>
                        <Image x:Name="ImageDown" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Source="Images\Button_Close_Down.png" Stretch="Fill" Opacity="0"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="False">
                            <Setter Property="Opacity" TargetName="ImageOver" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Opacity" TargetName="ImageOver" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="False">
                            <Setter Property="Opacity" TargetName="ImageDown" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="ImageDown" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsKeyboardFocused" Value="true">
                            <Setter Property="Opacity" TargetName="ImageOver" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter TargetName="MyGrid" Property="Opacity" Value="0.5"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="WoWToggleButtonStyle" TargetType="{x:Type ToggleButton}">
        <Setter Property="Focusable" Value="false"/>
        <Setter Property="ClickMode" Value="Press"/>
        <Setter Property="Cursor" Value="Hand"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="29" SharedSizeGroup="ComboBoxButton"/>
                        </Grid.ColumnDefinitions>
                        <Image HorizontalAlignment="Stretch" Margin="6,0,8,0" VerticalAlignment="Stretch" Grid.Column="0" Source="Images\Textbox_Center.png" Stretch="Fill"/>
                        <Image Margin="0,0,0,0" VerticalAlignment="Stretch" Height="Auto" Source="Images\Textbox_Left.png" Stretch="Fill" HorizontalAlignment="Left" Width="6"/>
                        <Image HorizontalAlignment="Right" Margin="0,0,0,0" VerticalAlignment="Stretch" Width="8" Grid.Column="0" Source="Images\Dropdown_Right.png" Stretch="Fill" Grid.Row="0"/>
                        <Image x:Name="ImageUp" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="29" Height="Auto" Source="Images\DropDown_Button.png" Stretch="Fill" Grid.Column="1"/>
                        <Image x:Name="ImageOver" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="29" Opacity="0" Grid.Column="1" Source="Images\DropDown_Button_Over.png" Stretch="Fill"/>
                        <Image x:Name="ImageDown" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="29" Opacity="0" Grid.Column="1" Source="Images\DropDown_Button_Down.png" Stretch="Fill"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Opacity" TargetName="ImageOver" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="False">
                            <Setter Property="Opacity" TargetName="ImageOver" Value="0"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="ImageDown" Value="1"/>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Opacity" TargetName="ImageDown" Value="0"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>